package org.qydjk.common.vo;


import java.util.ArrayList;
import java.util.List;

public class EasyUIResponse<T> {
    private int total;//总记录数
    private List<T> rows;//当前页条数

    private EasyUIResponse() {
    }

    public EasyUIResponse(int total, List<T> rows) {
        this.total = total;
        if(rows == null){
            this.rows = new ArrayList<T>();
        }else{
            this.rows = rows;
        }
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
